#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
    double arr2[6] = { 1,0.50,0.25,0.10,0.05,0.01 };
    double N;
    double arr[6] = { 100.00,50.00,20.00,10.00,5.00,2.00 };
    cin >> N;
    cout << "NOTAS:" << endl;
    int i, mid, t;
    for (i = 0; i < 6; i++)
    {
        mid = (int)N / arr[i];
        printf("%d nota(s) de R$ %.2lf\n", mid, arr[i]);
        N -= mid * arr[i];
    }
    cout << "MOEDAS:" << endl;
    for (i = 0; i < 6; i++)
    {
        t = (int)(N / arr2[i] + 10e-3);
        printf("%d moeda(s) de R$ %.2lf\n", t, arr2[i]);
        N -= t * arr2[i];
    }
    return 0;
}
